package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysSignLogMapper;
import com.ruoyi.system.domain.SysSignLog;
import com.ruoyi.system.service.ISysSignLogService;

/**
 * 签到日志Service业务层处理
 * 
 * @author hlw
 * @date 2021-04-05
 */
@Service
public class SysSignLogServiceImpl implements ISysSignLogService 
{
    @Autowired
    private SysSignLogMapper sysSignLogMapper;

    /**
     * 查询签到日志
     * 
     * @param signId 签到日志ID
     * @return 签到日志
     */
    @Override
    public SysSignLog selectSysSignLogById(Long signId)
    {
        return sysSignLogMapper.selectSysSignLogById(signId);
    }

    /**
     * 查询签到日志列表
     * 
     * @param sysSignLog 签到日志
     * @return 签到日志
     */
    @Override
    public List<SysSignLog> selectSysSignLogList(SysSignLog sysSignLog)
    {
        return sysSignLogMapper.selectSysSignLogList(sysSignLog);
    }

    /**
     * 新增签到日志
     * 
     * @param sysSignLog 签到日志
     * @return 结果
     */
    @Override
    public int insertSysSignLog(SysSignLog sysSignLog)
    {
        return sysSignLogMapper.insertSysSignLog(sysSignLog);
    }

    /**
     * 修改签到日志
     * 
     * @param sysSignLog 签到日志
     * @return 结果
     */
    @Override
    public int updateSysSignLog(SysSignLog sysSignLog)
    {
        return sysSignLogMapper.updateSysSignLog(sysSignLog);
    }

    /**
     * 批量删除签到日志
     * 
     * @param signIds 需要删除的签到日志ID
     * @return 结果
     */
    @Override
    public int deleteSysSignLogByIds(Long[] signIds)
    {
        return sysSignLogMapper.deleteSysSignLogByIds(signIds);
    }

    /**
     * 删除签到日志信息
     * 
     * @param signId 签到日志ID
     * @return 结果
     */
    @Override
    public int deleteSysSignLogById(Long signId)
    {
        return sysSignLogMapper.deleteSysSignLogById(signId);
    }
}
